a = range(1, 101)
s = sum(a)

print s * s - reduce(lambda i, j: i + j * j, a, 0)